Skip to content

Instantly share code, notes, and snippets.

@arainko
arainko / tutorial_cs2_audio_issues_linux.md
Last active March 12, 2026 12:55
Fix CS2 audio issues on Linux (pop_os in particular)

Issue: playing CS2 and talking on Discord is impossible - the game audio cuts off after a certain time and never comes back.

Solution: Create a virtual device using some pipewire trickery and then use that virtual device as the output device in CS2.

  1. Save output of pactl list to a file (get this package installed if you don't have it)
  2. Search for Sink with State: RUNNING in the file we created in the previous point, in my case it looked like this:
Sink #52
	State: RUNNING
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@Crocoblock
Crocoblock / code.php
Created August 28, 2024 11:26
JetEngine Output component with PHP
<?php
class JE_Component_Shortcode {
public function __construct() {
add_action( 'init', array( $this, 'init' ), 100 );
}
public function init() {
if ( ! function_exists( 'jet_engine' ) ) {
@vinamogit
vinamogit / index.js
Last active March 12, 2026 12:53
Pi Network to Stellar
const StellarSdk = require('stellar-sdk');
const bip39 = require( 'bip39');
const { derivePath } = require('@hawkingnetwork/ed25519-hd-key-rn');
const stellarServer = new StellarSdk.Server("https://horizon.stellar.org");
async function getPiNetworkKeypair(passphrase) {
const seed = await bip39.mnemonicToSeed(passphrase); // environment variable for the mnemonic of your application
const derivedSeed = derivePath("m/44'/314159'/0'", seed); //derivation path of Pi Network mnemonic
@DartPower
DartPower / Astra.md
Last active March 12, 2026 12:52
Astra Linux ISO / Коллекция ссылок на Astra Linux
@AskinNet
AskinNet / kitty.md
Created May 10, 2024 07:29 — forked from pnsinha/kitty.md
Kitty CheatSheet

Default shortcuts

Scrolling

Action Shortcut
Scroll line up ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS)
Scroll line down ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS)
Scroll page up ctrl+shift+page_up (also ⌘+⇞ on macOS)
Scroll page down ctrl+shift+page_down (also ⌘+⇟ on macOS)
@dedunumax
dedunumax / .gitignore Java
Last active March 12, 2026 12:49
A complete .gitignore file for Java.
##############################
## Java
##############################
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
@Marie-zaj
Marie-zaj / Client.cpp
Created March 12, 2026 12:02
TCP_exchange_rate
#define WIN32_LEAN_AND_MEAN
#include <iostream>
#include <windows.h>
#include <ws2tcpip.h>
#include <string>
#pragma comment(lib, "Ws2_32.lib")
using namespace std;
@janklimo
janklimo / scheme_exact_hyperliquid.md
Last active March 12, 2026 12:44
x402 on Hyperliquid

Scheme: exact on Hyperliquid

Versions supported

  • v1 - not supported.
  • v2

Supported Networks

This spec uses a custom CAIP-2 namespace for Hyperliquid L1 (HyperCore):

@hibiyasleep
hibiyasleep / GodDrinksJava.java
Last active March 12, 2026 12:42
world.execute(me);
package goddrinksjava;
/**
* The program GodDrinksJava implements an application that
* creates an empty simulated world with no meaning or purpose.
*
* @author momocashew
* @lyrics hibiyasleep
*/